import http from "@/utils/request";

//查询电表详情
export const getAmmeters = async () => {
	return http.post<any>(`/rooms/device/ammeter/information`,{})
}

//查询电表明细
export const getAmmetersDetail = async (data) => {
	return http.post<any>(`/rooms/device/ammeter/report`,data)
}

//查询水表详情
export const getWatermeters = async () => {
	return http.post<any>(`/rooms/device/waterMeter/information`, {})
}

//查询水表明细
export const getWatermetersDetail = async (data) => {
	return http.post<any>(`/rooms/device/waterMeter/report`,data)
}

//查询门锁列表
export const getDoorLockList = async () => {
	return http.post<any>(`/rooms/device/doorLock/information`, {})
}

//查询门锁密码列表
export const getDoorLock = async (deviceNo,mobile) => {
	return http.post<any>(`/rooms/device/doorLock/passwordList?deviceNo=${deviceNo}&mobile=${mobile}`,{})
}

//修改密码
export const setDoorLock = async (data) => {
	return http.post<any>(`/rooms/device/doorLock/updatePassword`,data)
}
